package com.bobbygu.server.simpleapp.model;

import com.bobbygu.server.simpleapp.utils.SafeUtil;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties({"sign"})
public class HomeAdImgModel {
    public String name;
    public String imgurl;
    public byte[] img_data;
    public String sign;

    public String getSign() {
        return SafeUtil.MD5(name + imgurl);
    }

    @Override
    public String toString() {
        return "HomeAdImgModel{" +
                "name='" + name + '\'' +
                ", imgurl='" + imgurl + '\'' +
                ", sign='" + sign + '\'' +
                '}';
    }
}
